

package com.walk.zworld.ui.fragment.square

import android.view.View
import com.walk.zworld.square.discovery.DiscoveryAdapter
import com.walk.zworld.square.discovery.DiscoveryViewModel
import com.walk.zworld.square.model.Discovery
import com.base.lib.base.view.BaseMvvmListFragment

/**
 * 首页-发现列表界面。
 */
class DiscoveryFragment : BaseMvvmListFragment<Discovery.Item, DiscoveryViewModel, DiscoveryAdapter>(){


    override fun onBindAdapter(): Class<DiscoveryAdapter> = DiscoveryAdapter::class.java

    override fun initBindAdapter(): DiscoveryAdapter {
        return DiscoveryAdapter(this);
    }

    override fun onBindViewModel(): Class<DiscoveryViewModel> = DiscoveryViewModel::class.java

    override fun initView(mView: View) {
        showInitLoadView()
    }

    override fun initData() {
        onRefreshEvent()
    }

    companion object {
        fun newsInstance() = DiscoveryFragment()
    }

}
